package com.ag.hmk.action;

import java.util.List;

import com.ag.bean.TbLevel;
import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.CaseLevelServImpl;
/**
 * @author hmk
 * 查询所有案例级别记录
 */
public class GetLevelAction extends BaseAction {

	private static final long serialVersionUID = 1141473115155878604L;

	private CaseLevelServImpl caseLevelServImpl;
	
	private List<TbLevel> caseLevelList;
	
	/*
	 * 查询所有案例级别记录
	 */
	public String findAll()throws Exception{
		List<TbLevel> list = null;
		try {
			list = caseLevelServImpl.findAll();
		} catch (Exception e) {
			e.printStackTrace();
			list = null;
		}
		this.setCaseLevelList(list);
		System.out.println("find all case level ok");
		return "getLevelOK";
	}
	

	public void setCaseLevelServImpl(CaseLevelServImpl caseLevelServImpl) {
		this.caseLevelServImpl = caseLevelServImpl;
	}

	public List<TbLevel> getCaseLevelList() {
		return caseLevelList;
	}

	public void setCaseLevelList(List<TbLevel> caseLevelList) {
		this.caseLevelList = caseLevelList;
	}
}
